<%@page import="com.foreveredu.propms.domain.Owner"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>业主管理</title>
<LINK href="images/css.css" type="text/css" rel="stylesheet">
</head>
<body>
	
	<table class="tableline" cellspacing="1" cellpadding="0" width="100%"
		border="0">
		<tr>
     <td colspan="8" class="STYLE4" align="center" bgcolor="#ffffff" colspan="2" height="40">业主管理列表页面
     </td>
       </tr>
       <tr>
     <td colspan="8" align="center" bgcolor="#ffffff" colspan="2" height="40">
     <c:if test="${!empty subDistrictList}">
		<c:forEach items="${subDistrictList}" var="subDistrict">
        <a href="owner.do?method=unspecified&subDistrict_id=${subDistrict.id }">${subDistrict.name }</a> &nbsp;&nbsp;&nbsp;
         </c:forEach>
    </c:if>
     </td>
       </tr>
		<tr>
			<td colspan="2" align="center" bgcolor="#ffffff">
				<table width="100%" border="0">
					<tr align="center">
						<td width="10%" height="25">业主姓名</td>
						<td width="11%">工作单位</td>
						<td width="10%">联系电话</td>
						<td width="19%">身份证</td>
						<td width="11%">家庭成员姓名</td>
						<td width="11%">家庭成员联系电话</td>
						<td width="18%">家庭成员身份证</td>
						<td width="10%">操作</td>
					</tr>
					<c:if test="${!empty pm.datas}">
						<c:forEach items="${pm.datas}" var="owner">
							<tr align="center">
								<td height="25">${owner.name }</td>
								<td>${owner.workUnit }</td>
								<td>${owner.phone }</td>
								<td>${owner.idCard }</td>
								<td>${owner.fmName }</td>
								<td>${owner.fmPhone }</td>
								<td>${owner.fmIdCard }</td>
								<td><a href="owner.do?method=update&id=${owner.id }">编辑</a>&nbsp;<a
									href="owner.do?method=delete&id=${owner.id }">删除</a></td>
							</tr>
						</c:forEach>
					</c:if>
					<tr>
						<td colspan="7">
							<center>
								<pg:pager url="owner.do" items="${pm.total }"
									export="currentPageNumber=pageNumber">
									<pg:first>
										<a href="${pageUrl }&subDistrict_id=${subDistrict.id }">首页</a>

									</pg:first>
									<pg:prev>
										<a href="${pageUrl }&subDistrict_id=${subDistrict.id }">上一页</a>
									</pg:prev>
									<pg:pages>
										<c:choose>
											<c:when test="${currentPageNumber eq pageNumber}">
												<font color="red">${pageNumber }</font>
											</c:when>
											<c:otherwise>
												<a href="${pageUrl }&subDistrict_id=${subDistrict.id }">${pageNumber }</a>
											</c:otherwise>
										</c:choose>
									</pg:pages>
									<pg:next>
										<a href="${pageUrl }&subDistrict_id=${subDistrict.id }">下一页</a>
									</pg:next>
									<pg:last>
										<a href="${pageUrl }&subDistrict_id=${subDistrict.id }">尾页</a>
									</pg:last>
								</pg:pager>
							</center>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</body>
</html>